#if !defined(AFX_TOOLVIEW2_H__2FAD740D_F27F_4EDA_8928_C1B65B8C5AB9__INCLUDED_)
#define AFX_TOOLVIEW2_H__2FAD740D_F27F_4EDA_8928_C1B65B8C5AB9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ToolView2.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// ToolView2 form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif
#include <D3dModel.h>
#include <d3dx9math.h>

class ToolView2 : public CPropertyPage
{
	DECLARE_DYNCREATE(ToolView2)
private:
	CSliderCtrl		m_SDAni;
	CStatic			m_STCurrentTime;
	CStatic			m_STLastTime;
	CButton			m_BodyAni;
	CButton			m_FaceAni;

public:
	void ChangeAnimation( int endTime, int FPS, int Blend );
	void SetFaceAni();
	void SetBodyAni();
public:
	afx_msg void OnBnClickedBodyani();
	afx_msg void OnBnClickedFaceani();

public:
	ToolView2();           // protected constructor used by dynamic creation
	virtual ~ToolView2();

// Form Data
public:
	//{{AFX_DATA(ToolView2)
	enum { IDD = IDD_DIALOG2 };
	CSliderCtrl	m_Size;
	CSliderCtrl	m_ScaleSlider;
	CSliderCtrl	m_Scale;
	CComboBox	m_Family;
	CButton	m_AniLock;
	CComboBox	m_ClassList;
	CComboBox	m_SexList;
	CListBox	m_ItemList;
	CTabCtrl	m_PartTab;
	CSliderCtrl	m_WeaponSlider;
	CListBox	m_WeaponList;
	CListBox	m_AniList;
	CSliderCtrl	m_Slider;
	//}}AFX_DATA
	SDrawElement *element;
	AddOnContainer *Weapon;
	int BodyIndex;
// Attributes
public:

// Operations
public:
	char BodyFile[80];
	int bAngle;
	int fAngle;
	void GetWeaponList();
	void GetAnimation();
	void GetItemList();
	void FrameMove( int time, SDrawElement *pdeCur );
	void SaveServAni(char *str);
	void GetAniCurrentTime( CString& time )
	{		
		m_STCurrentTime.GetWindowText( time );
	}	
	CImageList		m_ImageTree;
	ANILIST *anilist;
	int selradio;
	MESHINFO minfo;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(ToolView2)
	public:
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	public:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
//protected:
	
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(ToolView2)
	afx_msg void OnButton1();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButton2();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnSelchangeList2();
	afx_msg void OnSelchangeList3();
	afx_msg void OnRadio3();
	afx_msg void OnRadio1();
	afx_msg void OnRadio2();
	afx_msg void OnRadio6();
	afx_msg void OnRadio4();
	afx_msg void OnRadio5();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnButton5();
	afx_msg void OnButton6();
	afx_msg void OnButton7();
	afx_msg void OnButton8();
	afx_msg void OnButton9();
	afx_msg void OnButton10();
	afx_msg void OnButton11();
	afx_msg void OnButton12();
	afx_msg void OnDeltaposSpin1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangeTab2(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangeCombo1();
	afx_msg void OnSelchangeCombo2();
	afx_msg void OnSelchangeList4();
	afx_msg void OnFPSChange();
	afx_msg void OnCheck1();
	afx_msg void OnUpdateEdit11();
	afx_msg void OnButton13();
	afx_msg void OnfAngleChange();
	afx_msg void OnbAngleChange();
	afx_msg void OnButton14();
	afx_msg void OnOffset();
	afx_msg void OnShadow();
	afx_msg void OnChangeFormat();
	afx_msg void OnSelchangeCombo3();
	afx_msg void OnChangeEdit19();
	afx_msg void OnButton18();
	afx_msg void OnButton17();
	afx_msg void OnButton19();
	afx_msg void OnButton20();
	afx_msg void OnCheck2();
	afx_msg void OnButton22();
	afx_msg void OnButton23();
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnButton24();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TOOLVIEW2_H__2FAD740D_F27F_4EDA_8928_C1B65B8C5AB9__INCLUDED_)
